
package Procesos;

/**
 *    Esta clase contiene las expresiones regulares utilizadas por el ParserXML.
 * @author Emiliano
 */
public class RegularExpresions {
    public static String comentarioInicial = "(.*)<!--(.*)";
    public static String comentarioFinal = "(.*)-->(.*)";
    public static String etiquetaDobleLimpieza = "(.*)<(.*)>(.*)<(.*)>(.*)";
    public static String etiquetaDobleValidar = "<(.*)>(.*)<(/*)(.*)>"; // <libro> </libro>
    public static String etiquetaDobleValidar2 = "<(.*)>(.*)</(.*)>";
    public static String etiquetaSimple = "<(.*)>";
    public static String etiquetaSimpleA = "<(/*)(\\w|\\.|-)*>"; // <numCap> ; </numCap>
    public static String etiquetaSimpleB = "<(\\w*\\s*)(/)>"; // <numCap/>
    public static String etiquetaSimpleC = "<(\\?)*((\\w|\\.|-)*(\\s*\\w*-?\\w*=\".*\\s*\\w*\")*\\s*)(/*)>"; // <capitulo nombre="inicial" parrafos="20" />
    public static String etiquetaApertura = "<(\\?)*((\\w|\\.|-)*)((\\s*\\w*-?\\w*=\"(\\w|\\.|-)*\\s*(\\w|\\.)*\")*\\s*)(/*)>(.*)";
    public static String etiquetaCerradura = "(.*)<(/)((\\w|\\.|-)*)>";
    public static String simboloMenor = "(<+)";
    public static String simboloMayor = "(>+)";
    public static String declaracionXML = "(.*)<\\?xml(.*)\\?>(.*)"; // <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    public static String declaracionXMLCompleta = "<\\?xml\\s*version=\"\\d+\\.\\d+\"\\s*(encoding=\"(UTF|utf)-(8|16)\")\\s*(standalone=\"(no|yes)\")?\\s*\\?>"; // <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    public static String declaracionDocType = "(.*)<!DOCTYPE(.*)>(.*)"; // <!DOCTYPE rootElement PUBLIC "PublicIdentifier" "URIreference">
    public static String declaracionDocTypeCompleta = "(.*)<!DOCTYPE(\\s+)(.*)(\\s+)(PUBLIC|SYSTEM)\\s+(\"\\S*\\.(dtd|DTD)\")\\s*>"; // <!DOCTYPE libro SYSTEM "libro.dtd">
    public static String caracterNoEspacio = "\\S+"; //linea en blanco
}
